import java.util.Iterator;
import java.util.Vector;
import java.io.Serializable;

public class TableManager implements Serializable{
	Vector<Table> TableList;
	
	public TableManager()
	{
		TableList = new Vector<Table>();
	}
	public String packTableList()
	{
		String result = "";
		Iterator iter = this.TableList.iterator();
		while(iter.hasNext())
		{
			Table t = (Table) iter.next();
			result+=t.tableNumber + "|" + t.PManager.getCountofPlayers() + "|" + t.getMaximumPlayers() + "\n";
		}
		return result;
	}
}

